package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Role;
import cn.wolfcode.crm.query.QueryObject;

import java.util.List;

public interface RoleMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Role record);

    Role selectByPrimaryKey(Long id);

    List<Role> selectAll();

    int updateByPrimaryKey(Role record);

    List<Role> queryForList(QueryObject qo);

    int queryForCount(QueryObject qo);
    List<Role> listAll();

    List<String> allRoleName();


    List<String> listRoleNameByOperatorId(Long id);
}